package com.tenglong.teacher.data.requestInfo;

import com.netease.nimlib.sdk.msg.attachment.MsgAttachment;
import com.netease.nimlib.sdk.msg.constant.MsgStatusEnum;
import com.netease.nimlib.sdk.msg.constant.MsgTypeEnum;
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.RecentContact;
import com.tenglong.teacher.data.resultInfo.BaseModelEx;

import java.util.Map;

/**
 * @author hdx on 2019/2/20.
 */
public class AnswerQuestionItem extends BaseModelEx implements RecentContact {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.teacherIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String teacherimid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.studentIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String studentimid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.teacherId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String teacherid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.studentId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String studentid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.courseId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String courseid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.statusId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String statusid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.gradeId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String gradeid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column aq_item.classId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    private String classid;

    private String firstpicmsg;
    private String firsttextmsg;
    private int unreadcount;
    private String coursename;
    private String gradename;
    private String classname;
    private String studentname;

    public void setTeacherPhotoUrl(String teacherPhotoUrl) {
        this.teacherPhotoUrl = teacherPhotoUrl;
    }

    public void setStuPhotoUrl(String stuPhotoUrl) {
        this.stuPhotoUrl = stuPhotoUrl;
    }

    public void setQuestioning(String questioning) {
        this.questioning = questioning;
    }

    public int getUnreadcount() {
        return unreadcount;
    }

    public String getTeacherPhotoUrl() {
        return teacherPhotoUrl;
    }

    public String getStuPhotoUrl() {
        return stuPhotoUrl;
    }

    public String getQuestioning() {
        return questioning;
    }

    private String teachername;
    //教师头像
    private String teacherPhotoUrl;
    //学生头像
    private String stuPhotoUrl;

    private String questioning;




    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.teacherIMId
     *
     * @return the value of aq_item.teacherIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getTeacherimid() {
        return teacherimid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.teacherIMId
     *
     * @param teacherimid the value for aq_item.teacherIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setTeacherimid(String teacherimid) {
        this.teacherimid = teacherimid == null ? null : teacherimid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.studentIMId
     *
     * @return the value of aq_item.studentIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getStudentimid() {
        return studentimid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.studentIMId
     *
     * @param studentimid the value for aq_item.studentIMId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setStudentimid(String studentimid) {
        this.studentimid = studentimid == null ? null : studentimid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.teacherId
     *
     * @return the value of aq_item.teacherId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getTeacherid() {
        return teacherid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.teacherId
     *
     * @param teacherid the value for aq_item.teacherId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setTeacherid(String teacherid) {
        this.teacherid = teacherid == null ? null : teacherid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.studentId
     *
     * @return the value of aq_item.studentId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getStudentid() {
        return studentid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.studentId
     *
     * @param studentid the value for aq_item.studentId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setStudentid(String studentid) {
        this.studentid = studentid == null ? null : studentid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.courseId
     *
     * @return the value of aq_item.courseId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getCourseid() {
        return courseid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.courseId
     *
     * @param courseid the value for aq_item.courseId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setCourseid(String courseid) {
        this.courseid = courseid == null ? null : courseid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.statusId
     *
     * @return the value of aq_item.statusId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getStatusid() {
        return statusid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.statusId
     *
     * @param statusid the value for aq_item.statusId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setStatusid(String statusid) {
        this.statusid = statusid == null ? null : statusid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.gradeId
     *
     * @return the value of aq_item.gradeId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getGradeid() {
        return gradeid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.gradeId
     *
     * @param gradeid the value for aq_item.gradeId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setGradeid(String gradeid) {
        this.gradeid = gradeid == null ? null : gradeid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column aq_item.classId
     *
     * @return the value of aq_item.classId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public String getClassid() {
        return classid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column aq_item.classId
     *
     * @param classid the value for aq_item.classId
     *
     * @mbg.generated Sun Dec 23 09:42:16 CST 2018
     */
    public void setClassid(String classid) {
        this.classid = classid == null ? null : classid.trim();
    }
    public void setFirstpicmsg(String fimg){
        firstpicmsg=fimg;
    }
    public String getFirstpicmsg(){
        return firstpicmsg;
    }
    public String getStudentname(){
        return studentname;

    }
    public void setUnreadcount(int num){
        unreadcount=num;
    }

    public void setStudentname(String name){
        studentname= name;
    }


    public void setFirsttextmsg(String ftxt){
        firsttextmsg = ftxt;
    }
    public String getFirsttextmsg(){
        return firsttextmsg;
    }


    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public String getGradename() {
        return gradename;
    }

    public void setGradename(String gradename) {
        this.gradename = gradename;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }





    public String getTeachername() {
        return teachername;
    }

    public void setTeachername(String teachername) {
        this.teachername = teachername;
    }

    @Override
    public String toString() {
        return "AnswerQuestionItem{" +
                "teacherimid='" + teacherimid + '\'' +
                ", studentimid='" + studentimid + '\'' +
                ", teacherid='" + teacherid + '\'' +
                ", studentid='" + studentid + '\'' +
                ", courseid='" + courseid + '\'' +
                ", statusid='" + statusid + '\'' +
                ", gradeid='" + gradeid + '\'' +
                ", classid='" + classid + '\'' +
                ", firstpicmsg='" + firstpicmsg + '\'' +
                ", firsttextmsg='" + firsttextmsg + '\'' +
                ", unreadcount=" + unreadcount +
                ", coursename='" + coursename + '\'' +
                ", gradename='" + gradename + '\'' +
                ", classname='" + classname + '\'' +
                ", studentname='" + studentname + '\'' +
                ", teachername='" + teachername + '\'' +
                ", teacherPhotoUrl='" + teacherPhotoUrl + '\'' +
                ", stuPhotoUrl='" + stuPhotoUrl + '\'' +
                ", questioning='" + questioning + '\'' +
                '}';
    }

    @Override
    public String getContactId() {
        return getTeacherid();
    }

    @Override
    public String getFromAccount() {
        return getTeacherid();
    }

    @Override
    public String getFromNick() {
        return null;
    }

    @Override
    public SessionTypeEnum getSessionType() {
        return SessionTypeEnum.P2P;
    }

    @Override
    public String getRecentMessageId() {
        return null;
    }

    @Override
    public MsgTypeEnum getMsgType() {
        return null;
    }

    @Override
    public MsgStatusEnum getMsgStatus() {
        return MsgStatusEnum.success;
    }

    @Override
    public void setMsgStatus(MsgStatusEnum msgStatusEnum) {

    }

    @Override
    public int getUnreadCount() {
        return unreadcount;
    }
    public void setUnreadCount(int num)
    {
        unreadcount=num;
    }


    @Override
    public String getContent() {
        return null;
    }

    @Override
    public long getTime() {
        return 0;
    }

    @Override
    public MsgAttachment getAttachment() {
        return null;
    }

    @Override
    public void setTag(long l) {

    }

    @Override
    public long getTag() {
        return 0;
    }

    @Override
    public Map<String, Object> getExtension() {
        return null;
    }

    @Override
    public void setExtension(Map<String, Object> map) {

    }
}
